/**
 * @fileoverview 
 * input으로 부터 데이터를 추출한다.
 * 
 * @author luffy
 */
luffy.common.InputGather = {		
	getObjectByInput : function(el){
		var aInputList = jindo.$$("input",el);
		var obj = {};
		for(var i = 0 ; i < aInputList.length; i++){
			var elInput = aInputList[i];
			if(!elInput.name) continue;
			if(obj[elInput.name]){
				if(typeof obj[elInput.name].length != "undefined" && typeof obj[elInput.name].push != "undefined"){
					obj[elInput.name].push(elInput.value);
				}else{
					var temp = obj[elInput.name];
					obj[elInput.name] = [];
					obj[elInput.name].push(temp);
					obj[elInput.name].push(elInput.value);
					
				}
				
			} else{
				obj[elInput.name] = elInput.value;
			}
			  
		}
		return obj;		
	}
};